package com.xwq.smartgelleryhub.model.dto.excel;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.util.Date;

/**
 * 图片Excel导入导出DTO
 */
@Data
public class ExcelPictureDTO {
    
    @ExcelIgnore
    private Long id;
    
    @ExcelProperty("图片名称")
    @ColumnWidth(20)
    private String name;
    
    @ExcelProperty("图片描述")
    @ColumnWidth(40)
    private String description;
    
    @ExcelProperty("图片URL")
    @ColumnWidth(50)
    private String url;
    
    @ExcelProperty("图片标签")
    @ColumnWidth(30)
    private String tags;
    
    @ExcelProperty("创建者ID")
    private Long userId;
    
    @ExcelProperty("空间ID")
    private Long spaceId;
    
    @ExcelProperty("图片大小(KB)")
    private Long size;
    
    @ExcelProperty("图片宽度")
    private Integer width;
    
    @ExcelProperty("图片高度")
    private Integer height;
    
    @ExcelProperty("图片类型")
    @ColumnWidth(15)
    private String type;
    
    @ExcelProperty("审核状态")
    @ColumnWidth(15)
    private String reviewStatus;
    
    @ExcelProperty("创建时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date createTime;
    
    @ExcelProperty("更新时间")
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ColumnWidth(20)
    private Date updateTime;
} 